package com.itheima.tlias84.service;

import com.itheima.tlias84.dto.SelectAllEmpDTO;
import com.itheima.tlias84.dto.SelectEMPDetailDTO;
import com.itheima.tlias84.po.InsterEmpParam;
import com.itheima.tlias84.po.SelectEmpPageParam;
import com.itheima.tlias84.po.UpdateEmpParam;
import com.itheima.tlias84.utils.ResultUtil;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EmpService {
    List<SelectAllEmpDTO> selectAll();

    ResultUtil selectEmpByPage(SelectEmpPageParam param);

    int batchDelete(List<Integer> ids);

    int insertEmp(InsterEmpParam param);

    SelectEMPDetailDTO selectEmpById(Integer id);

    int updateEmp(@Param("p") UpdateEmpParam param);
}
